﻿using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace CommandListPanel
{
    /// <summary>
    /// KnowledgeWindow.xaml 的交互逻辑
    /// </summary>
    public partial class KnowledgeWindow : Window
    {
        public knowledgemapUserControl knowledgemapUserControl =null;

        public TextBox knowledgeText=null;
        public KnowledgeWindow(JObject command)
        {
            InitializeComponent();
            //加载数据与usercontrol
            knowledgemapUserControl = new knowledgemapUserControl(command);
            mainGrid.Children.Add(knowledgemapUserControl);
            Grid.SetColumn(knowledgemapUserControl,0);

            knowledgeText=new TextBox();
            knowledgeText.Text = command.ToString();
            mainGrid.Children.Add(knowledgeText);
            Grid.SetColumn(knowledgemapUserControl,1);
        }
    }
}
